package com.springboot.util;

/**
 * @Author: TongRui乀
 * @Date: 2019-11-15 16:38
 * @description：
 */
public class TenantThreadLocal {

    private static ThreadLocal<String> tenant = ThreadLocal.withInitial(() -> "dn1");

    public static void set(String value){
        tenant.set(value);
    }

    public static String get(){
        return tenant.get();
    }

}
